package br.com.assemble.hermeserp.model.pojos.financeiro;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;
import br.com.assemble.hermeserp.model.BasePojo;
import br.com.assemble.hermeserp.model.pojos.enderecamento.Enderecamento;
import br.com.assemble.hermeserp.model.pojos.pessoas.Pessoa;


/**
 * The persistent class for the ENDERECOS_COBRANCA database table.
 * 
 */
@Entity
@Table(name="ENDERECOS_COBRANCA")
@DaoClass(value="EnderecoCobrancaDao", pu="hermes-pu")
public class EnderecoCobranca extends BasePojo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ECO_IDENTIFY", unique=true, nullable=false)
	private BigInteger ecoIdentify;

	@Column(name="ECO_COMPL_ENDERECO", length=50)
	private String ecoComplEndereco;

	@Column(name="ECO_NUMERO_ENDERECO")
	private Integer ecoNumeroEndereco;

	//bi-directional many-to-one association to Enderecamento
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="END_IDENTIFY", nullable=false)
	private Enderecamento enderecamento;

	//bi-directional many-to-one association to Pessoa
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="PES_IDENTIFY", nullable=false)
	private Pessoa pessoa;

    public EnderecoCobranca() {
    }

	public BigInteger getEcoIdentify() {
		return this.ecoIdentify;
	}

	public void setEcoIdentify(BigInteger ecoIdentify) {
		this.ecoIdentify = ecoIdentify;
	}

	public String getEcoComplEndereco() {
		return this.ecoComplEndereco;
	}

	public void setEcoComplEndereco(String ecoComplEndereco) {
		this.ecoComplEndereco = ecoComplEndereco;
	}

	public Integer getEcoNumeroEndereco() {
		return this.ecoNumeroEndereco;
	}

	public void setEcoNumeroEndereco(Integer ecoNumeroEndereco) {
		this.ecoNumeroEndereco = ecoNumeroEndereco;
	}

	public Enderecamento getEnderecamento() {
		return this.enderecamento;
	}

	public void setEnderecamento(Enderecamento enderecamento) {
		this.enderecamento = enderecamento;
	}
	
	public Pessoa getPessoa() {
		return this.pessoa;
	}

	public void setPessoa(Pessoa pessoa) {
		this.pessoa = pessoa;
	}
	
}